]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-bin: Make sure not to allocate hidden children
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 20:49:46 +0000 (17:49 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 4 Sep 2012 21:42:44 +0000 (18:42 -0300)
src/st/st-bin.c

index b083346391b88caec4d4b2ce5ed132ef5cfe1796..3bfa93d87463b1bd5f3fe123d4c74c9c2545907f 100644 (file)
@@ -101,7 +101,7 @@ st_bin_allocate (ClutterActor          *self,
 
   clutter_actor_set_allocation (self, box, flags);
 
-  if (priv->child)
+  if (priv->child && CLUTTER_ACTOR_IS_VISIBLE (priv->child))
     {
       StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (self));
       ClutterActorBox childbox;